package com.cssl.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.util.List;

@Data
public class Bookinformation {
    @TableId
    private Integer id;  //书名id
    private String Callnumber; //索书号
    private String jianjie;//书籍封面
    private String Title;//书名
    private String category;//图书类别
    private Integer bid; //级别表主键
    private Double money; //图书定价
    private Integer years;  //出版年份
    private Integer pid;//出版设外键
    private String state;//图书当前状态
    private Integer lid;//位置表外键
    private String author;//作者

    @TableField(exist = false)
    private Published published;
    @TableField(exist = false)
    private Booklevel booklevel;
    @TableField(exist = false)
    private Location location;
    @TableField(exist = false)
    private Integer jiechu;//这本书累计借出多少次
    @TableField(exist = false)
    private Integer countbenshu;//图书资源有本书

    @TableField(exist = false)
    private List<Published> publisheds;
    @TableField(exist = false)
    private List<Booklevel> booklevels;
    @TableField(exist = false)
    private List<Location> locations;
}
